package com.hmz.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @author hmz
 * @version v1.0
 * @data 2020/09/14
 **/
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Employee {
    private Integer id;
    private String empName;
    private BigDecimal salary;
    private String email;
    private Date birth;
    private Date createTime;

    private Integer departmentId;

    private Department department;

    @Override
    public String toString() {
        return "Employee{" +
                "id=" + id +
                ", empName='" + empName + '\'' +
                ", salary=" + salary +
                ", email='" + email + '\'' +
                ", birth=" + birth +
                ", createTime=" + createTime +
                ", departmentId=" + departmentId +
                '}';
    }
}
